package us.icitap.timsportal.web.custom;

import us.icitap.timsportal.web.TimsPortalApp;

import com.vaadin.ui.Panel;

public class PortalPanel extends Panel{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public PortalPanel(){
		super();
		setStyleName("timsportal");
	}

	public PortalPanel(String caption){
		super(caption);
	}
	
	public PortalPanel(String caption, String style){
		this(caption);
		setStyleName(style);
	}
	
	public TimsPortalApp getApplication(){
		if(super.getApplication()==null)return null;
		else return (TimsPortalApp)super.getApplication();
	}

}
